package band.wukong.practice.springboot.spring4.advanced.aware;

import band.wukong.practice.springboot.spring4.ext.logback.LogbackLoader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author wukong(wukonggg@139.com)
 */
public class AwareApplication {

    public static void main(String[] args) {
        LogbackLoader.load();

        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AwareConfig.class);

        AwareService service = context.getBean(AwareService.class);
        service.outputResult();

        context.close();
    }

}
